import request from '@/utils/request'

export function createReservation(data) {
  return request({
    url: '/api/reservation',
    method: 'post',
    data
  })
}

export function getMyReservations() {
  return request({
    url: '/api/reservation/my',
    method: 'get'
  })
}

export function cancelReservation(id) {
  return request({
    url: `/api/reservation/cancel/${id}`,
    method: 'put'
  })
} 